import { createRouter, createWebHashHistory } from 'vue-router'
import ListingPage from '../pages/ListingPage.vue'
import ListingDetails from '../pages/ListingDetails.vue'

const routes = [
  { path: '/', name: 'ListingPage', component: ListingPage },
  { path: '/listing', name: 'listing', component: ListingDetails },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router 